<html>
<head><meta charset="utf-8"><title>New highlighting glitches · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/New.20highlighting.20glitches.html">New highlighting glitches</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192325010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/New%20highlighting%20glitches/near/192325010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kirill Bulatov <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/New.20highlighting.20glitches.html#192325010">(Mar 30 2020 at 22:21)</a>:</h4>
<p>Had stumbled onto a few glitches that I wanted to share yet not sure if it's worth to create a ticket for them (since the work on highlighting is still ongoing?)</p>
<p>I think we're missing type aliases' highlighting:<br>
<a href="/user_uploads/4715/7vUl7q_nCrQx3XPMYoAZuiHD/image.png" title="image.png">image.png</a> </p>
<div class="message_inline_image"><a href="/user_uploads/4715/7vUl7q_nCrQx3XPMYoAZuiHD/image.png" title="image.png"><img src="/user_uploads/4715/7vUl7q_nCrQx3XPMYoAZuiHD/image.png"></a></div><p>Since white colour appears to be the default, should we consider highlighting the attributes differently?</p>
<p>Also, it looks like the highlighting does not apply before any modification to a file: if I open the VSCode and just wait, nothing is highlighted before I start editing the file.</p>



<a name="192328363"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/New%20highlighting%20glitches/near/192328363" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/New.20highlighting.20glitches.html#192328363">(Mar 30 2020 at 23:04)</a>:</h4>
<p>Yeah, I see the same <code>type-and-only-then-it-updates</code> glitches. But the problem with highlighting the type aliases and attributes is most likely that there is no color setup for these types of tokens.<br>
I explicitly set the custom colors in my <a href="https://gist.github.com/Veetaha/2120aa0c49c319adc0d29d64a47b010c#file-settings-json-L59-L104" title="https://gist.github.com/Veetaha/2120aa0c49c319adc0d29d64a47b010c#file-settings-json-L59-L104"><code>settings.json</code></a>.<br>
By the way, you can inspect the types of tokens via <code>&gt; Developer: Inspect Editor Tokens and Scopes</code>:<br>
<a href="/user_uploads/4715/AI3xvM1sZkIV28s3SGNCy7qL/image.png" title="image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/AI3xvM1sZkIV28s3SGNCy7qL/image.png" title="image.png"><img src="/user_uploads/4715/AI3xvM1sZkIV28s3SGNCy7qL/image.png"></a></div>



<a name="192348149"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/New%20highlighting%20glitches/near/192348149" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kirill Bulatov <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/New.20highlighting.20glitches.html#192348149">(Mar 31 2020 at 06:03)</a>:</h4>
<p>Good to know that there's only one real glitch.<br>
Yet I think it's good to add some defaults for those two entities.</p>



<a name="192667487"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/New%20highlighting%20glitches/near/192667487" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/New.20highlighting.20glitches.html#192667487">(Apr 02 2020 at 13:50)</a>:</h4>
<p>It looks like insiders is now using the semantic tokens range request. It could be a source of bugs though a cursory glance suggests that it's working correctly.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>